<template>
  <view class="content">
    <view class="text-area">
      <text>首页</text>
      <navigator url="/pages/movie/movie" open-type="navigate">跳转详情</navigator>
      <button @click="goMovie">跳转详情</button>
    </view>
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const title = ref('Hello')
const goMovie = () => {
  uni.navigateTo({
    url: '/pages/movie/movie'
  })
}
</script>

<style lang="scss">
body{
  color: $uni-color-primary;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

</style>
